package com.lagou.model;

import java.io.Serializable;
import java.util.Arrays;

/**
 * 考试成绩类
 */
public class ExamReport implements Serializable {

    private static final long serialVersionUID = -1665642285194928877L;

    /**
     * 考试题目
     */
    private Question[] questions = new Question[3];

    /**
     * 考题答案
     */
    private String[] answer = new String[3];

    /**
     * 考试分数
     */
    private int grade;

    /**
     * 考生姓名
     */
    private String username;

    public Question[] getQuestions() {
        return questions;
    }

    public void setQuestions(Question[] questions) {
        this.questions = questions;
    }

    public String[] getAnswer() {
        return answer;
    }

    public void setAnswer(String[] answer) {
        this.answer = answer;
    }

    public int getGrade() {
        return grade;
    }

    public void setGrade(int grade) {
        this.grade = grade;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return "成绩单{" +
                "考题：" + Arrays.toString(questions) +
                ", 答案：" + Arrays.toString(answer) +
                ", 成绩：" + grade +
                ", 学员：'" + username + '\'' +
                '}';
    }
}
